-- CALC_MASSAGE_ROOM_BONUS
-- 按摩房奖励

return function(user, class)
    local ret = {};

    if DungeonServiceM.queryDungeonAttrib("massage_room") >= 90 then
        return ret;
    end

    local buildingInfo = BuildingBonusM.queryBuildingView(class);
    local tip = buildingInfo["bonus_tip"];

    if DungeonServiceM.queryDungeonAttrib("massage_room") < 60 then
        ret["dungeon_attrib"] = {"massage_room", 30};
        ret["tip"] = tip;
    else
        -- 拆弹装置
        ret["bonus"] = {1, 7603, 1};
        ret["dungeon_attrib"] = {"massage_room", 30};
    end

    return ret;
end
